<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://code.jquery.com/jquery-1.12.4.js" integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=" crossorigin="anonymous"></script>
    <script type="text/javascript">
        var url = '123'
        function sendBodyParams(){
            $.ajax({
                url: "http://localhost:80/bodyParams",
                type: 'POST',
                data: "[{\"name\":\"abc\", \"password\":\"123\"},{\"name\":\"efg\", \"password\":\"123\"}]",
                contentType: "application/json",
                dataType:JSON,
                success:function (data){
                    alert(data);
                    console.log(data)
                }
            })
        }
    </script>
</head>
<body style="text-align: center">

<button onclick="sendBodyParams()">测试</button>
</body>
</html>